package advance

import (
	"fmt"
)

type Rpt struct {
	ip     string
	port   string
	params Params
}

type Params struct {
	Width  int
	Height int
}

func (r *Rpt) Cal(p Params, ret *int) error {
	fmt.Println("Rpt remote Cal")
	*ret = (p.Height + p.Width) << 1
	return nil
}
